https://courses.grainger.illinois.edu/ece556/sp2020/hw4-F2020 .pdf